<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>客户群提醒</title>
	<link rel="stylesheet" href="/layui/css/layui.css">
	<link rel="stylesheet" href="/hyqcss/public.css">
	<style type="text/css">
		body{
			background: #e9e9e9;
		}
		/*公共头部带搜索*/
		.public_container{
			margin: 20px;
			background: #fff;
		}
		.public_title_container{
			height: 54px;
			padding: 0 20px;
			font-size: 14px;
			display: flex;
			align-items: center;
			background: #f9f9f9;
			border-bottom: 1px solid #f0f0f0;
		}
		.public_buttonSearch_container{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 20px;
			background: #fff;
		}
		.public_buttonSearch_container a{
			color: #fff;
			background-color: #1E9FFF;
			text-shadow: 0 -1px 0 rgba(0,0,0,.12);
			height: 24px;
			padding: 4px 15px;
			font-size: 14px;
			border-radius: 2px;
			display: flex;
			align-items: center;
		}
		.public_Search_container{
			position: relative;
		}
		.public_Search_container input{
			width: 240px;
			height: 32px;
			border: 1px solid #d9d9d9;
		}
		.public_Search_container i{
			position: absolute;
			bottom: 6px;
			right: 10px;
			cursor: pointer;
		}
		/*公共头部带搜索 end*/
		.public_table_container{
			padding: 0 20px 20px 20px;
		}
	</style>
</head>
<body>
	<!-- 顶部提示框 开始 -->
	<div class="public_tipSetting_contaienr">
		<div class="public_tipSetting_content">
			<p>本功能需配合会话存档功能使用，当客户在群聊中提到违规词或者商机词时，会及时提醒群主对违规客户进行处理，对商机进行跟进。</p>
			
			<svg id="closeTips" t="1599462804099" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8813" width="15" height="15"><path d="M512 102.4a409.6 409.6 0 1 0 409.6 409.6 409.6 409.6 0 0 0-409.6-409.6z m181.248 518.144a51.2 51.2 0 0 1-72.704 72.704L512 584.192l-108.544 109.056a51.2 51.2 0 0 1-72.704-72.704L439.808 512 330.752 403.456a51.2 51.2 0 0 1 72.704-72.704L512 439.808l108.544-109.056a51.2 51.2 0 0 1 72.704 72.704L584.192 512z" fill="" p-id="8814"></path></svg>
		</div>
	</div>
	<!-- 顶部提示框 结束 -->
	<div class="public_container">
		<!-- /*公共头部带搜索*/ -->
		<div class="public_content">
			<div class="public_title_container">
				<p>违规词提醒</p>
			</div>
			<div class="public_buttonSearch_container">
				<a href="save_violation_remind.html">+ 新建违规词提醒</a>
				<form  method="get" action="" id="Form1">
				<div class="public_Search_container" style="display: none">
					<input type="text" name="name" value="{$name}" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
					<i class="layui-icon layui-icon-search" onclick="document.getElementById('Form1').submit()"></i>
				</div>
				</form>
			</div>
		</div>
		<!-- /*公共头部带搜索*/ end -->
		<!-- 公共表格部分 -->
		<div class="public_table_container">
			<table class="layui-table" lay-skin="line">
			  <!--<colgroup>
			      <col width="200">
			      <col width="100">
			      <col>
			    </colgroup>-->
			    <thead>
			      <tr>
			        <th>方案名称</th>
			        <!-- <th>适用群聊</th> -->
					<!-- <th>检查二维码</th> -->
			        <!-- <th>链接分享</th> -->
			        <!-- <th>小程序</th> -->
			        <!-- <th>名片</th> -->
			        <th>关键词</th>
			        <th>创建时间</th>
<!--			        <th>是否启用</th>-->
			        <th>操作</th>
			      </tr> 
			    </thead>
			    <tbody>
				{loop $res as $r}
				<tr>
			        <td>{$r->name}</td>
			        <!-- <td>
						{loop $r->chat as $g}
							{$g->name }<br/>
						{/loop}
					</td>
					<td class="td_icon">
						{if $r->img_qrcode }
							<i class="layui-icon layui-icon-ok" style="font-size: 30px; color: #1E9FFF;"></i>
						{else}
							<i class="layui-icon layui-icon-close" style="font-size: 30px; color: #1E9FFF;"></i>
						{/if}
					</td>
					<td class="td_icon">
						{if $r->link }
						<i class="layui-icon layui-icon-ok" style="font-size: 30px; color: #1E9FFF;"></i>
						{else}
						<i class="layui-icon layui-icon-close" style="font-size: 30px; color: #1E9FFF;"></i>
						{/if}
					</td>
					<td class="td_icon">
						{if $r->weapp }
						<i class="layui-icon layui-icon-ok" style="font-size: 30px; color: #1E9FFF;"></i>
						{else}
						<i class="layui-icon layui-icon-close" style="font-size: 30px; color: #1E9FFF;"></i>
						{/if}
					</td>
			        <td class="td_icon">
						{if $r->card }
						<i class="layui-icon layui-icon-ok" style="font-size: 30px; color: #1E9FFF;"></i>
						{else}
						<i class="layui-icon layui-icon-close" style="font-size: 30px; color: #1E9FFF;"></i>
						{/if}
					</td> -->
			        <td>

						{if $r->text_key }
							{loop $r->key_list as $k}
								{$k} &nbsp;&nbsp;
							{/loop}
						{else}
						<i class="layui-icon layui-icon-close" style="font-size: 30px; color: #1E9FFF;"></i>
						{/if}
					</td>
					<td>
						{$r->ctime }
					</td>
<!--					<td>-->
<!--						<input type="checkbox" name="status" lay-skin="switch" lay-text="开启|关闭">-->
<!--					</td>-->
					<td>
						<a class="table-public-btn" href="save_violation_remind-{$r->id}.html">编辑</a>
						<a class="table-public-btn" onclick="del_remind({$r->id})">删除</a>
					</td>
			        <!--<td><button type="button" class="layui-btn layui-btn-sm layui-btn-danger">查看结果</button></td>-->
			      </tr>
				{/loop}

			    </tbody>
			</table>
		</div>
		<!-- 公共表格部分 end-->
		<div class="main-container-h pageing-container-h">
		        <div class="pageing-content-h">
		           <span>{$P->totalnum}条/{$P->totalpage}页</span>
		        </div>
				<ul class="pageing-content-h">
		           {P weidogsadmin}
				</ul>
		    </div>
	</div>
	
	<script src="/cdn/jquery.js"></script>
	<script src="/layui/layui.js"></script>
	<script src="/js/ajax.js"></script>
	<script type="text/javascript">
		$("#closeTips").click(function(){
			$('.public_tipSetting_contaienr').hide();
		})
	</script>
	<script type="text/javascript">
		function del_remind(id){
			if(confirm('确定删除吗？')) {
				myAjaxPost(false, true, 'del_violation_remind.html', { id:id},  (resp) => {
					if (resp.status == 'success') {
						tusi(resp.msg);
						setTimeout(function(){
							location.href = 'violation_remind_list.html';
						},500);
					}else{
						alert(resp.msg);
					}
				});
			}
		}

	</script>
</body>
</html>